package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Employee;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品和口味，dish,dish_flavor
    public void saveWithFlavor(DishDto dishDto);


    //根据id查询dish，dish_flavor
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品，同时更新对应的口味信息
    public void updateWithFlavor(DishDto dishDto);
}
